<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>HTML5 contenteditable属性测试</title>
	<style type="text/css">
		.box{
			width: 400px;
			height: 200px;
			border: 1px solid black;
			display: inline-block;
			vertical-align: top;
			overflow: auto;
		}
		@media only screen and (max-width: 640px) {
			.box{
				width: 100%;
			}
		}
	</style>
</head>
<body>
	<h1>HTML5 contenteditable属性测试</h1>
	<hr />
	<div class="box">这个框框里面的内容<b>不可以</b>编辑</div>
	<div contenteditable="true" class="box">这个框框里面的内容<b>可以</b>编辑</div>
</body>
</html>